<?php
include 'db/li.php';

@$types = dbSelectAll('select id,name from type');

if(empty($types)){
	echo json_encode(array('status'=>false,'info'=>'获取数据失败'));
}

echo json_encode(array('status'=>true,'types'=>$types));